from flask import Blueprint, render_template, jsonify, request
from setting import API_VERSION
import json
from utils.api_result import result
from utils.nodetree import get_all_area
from utils.result import result

mod = Blueprint("gateway", __name__, url_prefix="/api/" + API_VERSION + "/gateway", template_folder="templates", static_folder="static")

@mod.route('/get/',methods=['GET','POST'])
def get_area():
    """
    {
    "parent_id" : 120000
    }
    """
    if request.method == 'POST':
        return result(success=1,code=1,msg='ok', data=[])
    else:
        return result(success=1,code=1,msg='ok', data=[])